package br.com.testkiller;

public class Beta{
	
	class AA implements Foo{
		public int bar(){
		return 1;
		}	
	}
	public int fubar(Foo foo){
			return foo.bar();
		}
	public void testFoo(){
		class AA implements Foo{
			public int bar(){
				return 2;
			}
		}
		System.out.println(fubar (new AA()));
	}
	public static void main(String [] args){
	new Beta().testFoo();
	}
}